package com.power.sifa.supervise.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

public interface IBusinessSupervise {
    /**
     * 启动一个业务子流程
     *
     * @param applyid  申请id
     * @param proctype 操作分类
     * @param userid   用户id
     * @param docfield 其他参数
     */
    @PostMapping("/businesssupervise/startBusinessProced")
    ResponseDTO startBusinessProced(@RequestParam String applyid, @RequestParam String proctype, @RequestParam String userid,
                                    @RequestBody Map<String, Object> docfield);




    /**
     * 整改完成/审查完成。流程走入下一步 关闭赣政通的代办任务。
     * @param applyid
     * @param taskid
     * @param userid
     * @param
     * @return
     */
    @PostMapping("/businesssupervise/completeToNext")
    ResponseDTO completeToNext (@RequestParam String applyid, @RequestParam String taskid, @RequestParam String userid);


    /**
     * 整改步骤的 整改完成操作
     * @param applyid
     * @param taskid
     * @param userid
     * @return
     */
    @PostMapping("/businesssupervise/completeMaterial")
    ResponseDTO completeMaterial (@RequestParam String applyid, @RequestParam String taskid, @RequestParam String userid);

    /**
     * 整改步骤的 完成操作
     * @param applyid
     * @param taskid
     * @param userid
     * @return
     */
    @PostMapping("/businesssupervise/completeEnd")
    ResponseDTO completeEnd (@RequestParam String applyid, @RequestParam String taskid, @RequestParam String userid);
}
